<%@ Page Language="VB" MasterPageFile="~/site.master" AutoEventWireup="false" codefile="Players.aspx.vb" Inherits="Players" %>
<asp:Content ID="Content1" ContentPlaceHolderID="mainContent" Runat="server">
    <asp:sqldatasource id="SqlDataSource1" runat="server" selectcommand="SELECT * FROM [vw_Players] ORDER BY [LastName]"
        connectionstring="<%$ ConnectionStrings:WroxUnited %>"></asp:sqldatasource>
    <asp:datalist id="DataList1" runat="server" datakeyfield="PlayerID" datasourceid="SqlDataSource1"
        RepeatColumns="4" CellPadding="10" EnableViewState="false">
        <ItemTemplate>
            <asp:image ImageUrl='<%# Eval("PictureURL", "~/PlayerImages/{0}") %>' runat="server" id="PictureURImage"
                style="float:left; border: none; margin-right: 10px;" />
            <strong>
                <asp:Label Text='<%# Eval("FirstName") %>' runat="server" id="FirstNameLabel"/>
                <asp:Label Text='<%# Eval("LastName") %>' runat="server" id="LastNameLabel"/>
            </strong>
            <asp:Label Text='<%# Eval("Position") %>' runat="server" id="PositionLabel"/><br /><br />
            Joined on<br />
            <asp:Label Text='<%# Eval("DateJoined", "{0:dd-MMM-yy}") %>' runat="server" id="DateJoinedLabel"/><br />
        </ItemTemplate>
    </asp:datalist></asp:Content>
